class MinigamePlayerReturn extends UseTrigger;

var() int MinigameNumber;

simulated function PostBeginPlay() {

    super.PostBeginPlay();
    Spawn(class'Enyara.EffectGoalPulse',,,Location);

}

function bool SelfTriggered()
{
	return true;
}

function UsedBy( Pawn user )
{
	TriggerEvent(event, self, user);
}

function Touch( Actor Other )
{
    local EnyaraPlayerController PC;
    local MinigamePlayerStart PS;
    local MinigamePlayerController MGPC;
    local MinigamePawn MGPawn;

    PC = EnyaraPlayerController(level.GetLocalPlayerController());
    PC.bMinigameMode = false;
    PC.InputClass = class'Enyara.MageInput';
    PC.Pawn.Destroy();
    PC.CleanUpMinigameEmitters();
    PC.UnPossess();
    PC.Possess(PC.PreMinigameEnyaraPawn);
}

defaultproperties {
    MinigameNumber=1
    bHidden=true
}
